API Documentation
ThemeManager.h
1 // ThemeManager.h
3 //
5 
6 namespace nkWinUi
7 {
13  class ThemeManager final : public nkCommon::SingletonClass<ThemeManager>
14  {
15  public :
16 
17  // Manipulations
31  Theme* get (const nkMemory::StringView& name) const ;
32 
33 
34  // Getters
38  Theme* getActiveTheme () const ;
39 
40  // Setters
46  void setActiveTheme (Theme* theme) ;
47  } ;
48 }
nkWinUi::ThemeManager::getActiveTheme
Theme * getActiveTheme() const
nkWinUi::ThemeManager::setActiveTheme
void setActiveTheme(Theme *theme)
nkMemory::StringView
Class holding information about a string, with no ownership over the data.
Definition: StringView.h:22
nkWinUi::Theme
A theme used to style the windows in the component.
Definition: Theme.h:44
nkWinUi::ThemeManager::get
Theme * get(const nkMemory::StringView &name) const
nkWinUi
Encompasses all API of component NilkinsWinUi.
Definition: Button.h:7
nkWinUi::ThemeManager::createOrRetrieve
Theme * createOrRetrieve(const nkMemory::StringView &name)
nkWinUi::ThemeManager
Manages the themes within the component.
Definition: ThemeManager.h:14